length=int(input("输入最大长度："))
print(length)

# 右上
i=1
while i<=length:
    print(" "*(length-i)+"*"*i)
    i=i+1
print()
# 左上
i=1
while i<=length:
    print(" "*(length-1)+"*"*i)
    i=i+1
print()
# 左下
i=length
while i>=1:
    print(" "*(length-1)+"*"*i)
    i=i-1
print()
# 右下
i=length
while i>=1:
    print(" "*(length-i)+"*"*i)
    i=i-1
